FROM golang

RUN go get github.com/astaxie/beego \
    && go get github.com/beego/bee \
    && go get github.com/mattn/go-sqlite3 \
    && go get github.com/dgrijalva/jwt-go

ADD . /go/src/IoTHubAddressService/iotserver

EXPOSE 8123

WORKDIR /go/src/IoTHubAddressService/iotserver

CMD ["bee","run"]